<?php

namespace app\validate\admin;

use think\Validate;

class AuthValidate extends Validate
{
	protected $rule = [
	    'email' => 'require|email',
	    'password' => 'require|alphaNum',
	    'captcha' => 'alphaNum|length:5',
        '_token' => 'require|token:_token',
    ];

    protected $message = [
        'email.require' => '邮箱必须填写',
        'email.email' => '邮箱格式不对',
        'password.require' => '密码必须填写',
        'password.alphaNum' => '密码格式不对',
        'captcha.alphaNum' => '验证码格式不对',
        'captcha.length' => '验证码长度5位',
        '_token.require' => 'toke令牌为空',
    ];
}
